This example describes the database operations classes available in MYSQL,MSSQL,PG three databases, and you can easily change the type of your database as long as you make any changes. Share it for your reference. The specific analysis is as follows:
-Function Manifest Index:-Open: Opening database connection line:71-Close: Closes the database connection line:107-SELECTDB: Select Database line:129-Query: Create queries line:151-Dataseek: Move record pointer line:175-FieldName: Get field name
One, database upgrade 9.4 to 9.51.pg_dump Import and export (used when data volume is small)Postgres User Login$ pg_dumpall > Db_export.out$ env|grep LANGLang=en_us. UTF-8If the database character set is en_US. UTF-8, the system character set is
Export command- - 5432 - -- inserts-t human_info > D:\human_info_backup.sql testdbCommand descriptionPg_dump: is the backup command that comes with the PG database, and in the bin directory, all execution must be performed in the bin directory.- H:
This article will introduce how to import and export the PG database, the main use is the PG comes with pg_dump, Pg_dumpall, Pg_restore, Psql and other commands, version is 9.4 (different versions of pg_dump \ Pg_ The restore option may be somewhat
The PG database is the PostgreSQL database.A few days ago in a Java project, the data table exception hangs for the PG database after running the Java program. And it appears on a computer, reloading the database is useless, the other computers can
Django1.7 added the migration feature later, the database-defined upgrade is fully automated, and was previously done through a "South" app. This article discusses the manual update upgrade under 1.6.1, table create and table delete operation,
When installing postgreSQL, you may encounter a problem when executing configure
The following error is reported: configure: error: readline library not found, but I installed it in the system.
Readline package,
1. Environment Information
2.
Release date:Updated on: 2012-03-13
Affected Systems:Debian Linux 6.0 xPerl-DBD-Pg 2.18.1-1Description:--------------------------------------------------------------------------------Bugtraq id: 52378
Perl DBI is a database connection API in Perl.
Login# su-postgres-c "Psql" or - h serverhostpsql (10.0) Type ' help ' for help.postgres=# \h #查看所有的sql关键字 \? #命令行操作的帮助 All Tables \q in the \d #查看当前schema #退出pg命令行 \d #schema. Table View structure \x #横纵显示切换 \dt+
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.